|
|
|
|
|
|
|
Let's build a quick project to demonstrate the use of Bookmarks. Use the information in Table 3.1 to create a small form with a data control, two bound input controls, two label controls, and a single command button. |
|
|
|
|
| Table 3.1. Controls for BOOKMARKS.FRM. | | Control | Property | Setting | | VB.Form | Name | FrmBookMarks | | Caption | "Bookmark Demonstration" | | ClientHeight | 1320 | | ClientLeft | 60 | | ClientTop | 345 | | ClientWidth | 4605 | | StartUpPosition | 2 'CenterScreen | | VB.CommandButton | Name | CmdSaveBookmark | | Caption | "&Save Bookmark" | | Height | 300 | | Left | 2760 | | Top | 180 | | Width | 1695 | | VB.Data | Name | DtaBookMarks | | Align | 2 'Align Bottom | | Caption | "Data1" | | Connect | "Access" | | DatabaseName | C:\TYSDBVB5\SOURCE\DATA\BOOKS5.MDB | | RecordsetType | 1 'Dynaset | | RecordSource | "Authors" | | VB.TextBox | Name | TxtName | | DataField | "Name" | | DataSource | "dtaBookMarks" | | Height | 300 | | Left | 1440 | | Top | 600 | | Width | 3015 |
|
|
|